#ifndef BODYPARTRIGID_H
#define BODYPARTRIGID_H

#include "bodypart.h"

using namespace std;

class BodypartRigid : public Bodypart
{
	public:
// 		BodypartRigid(boost::shared_ptr<btDynamicsWorld> ownerWorld, void* owner, btCollisionShape* nshape, float weight, btTransform& transform, const Color& clr, bodypartShape sh);
		BodypartRigid(bodypartShape sh, const BeColor& clr, boost::shared_ptr<btDynamicsWorld> ownerWorld);
		virtual ~BodypartRigid();

		// OBJECTS ONLY RIGID HAS
		boost::shared_ptr<btDefaultMotionState>	m_motionState;
		boost::shared_ptr<btRigidBody>			m_body;
		
		virtual void		updatePosition();

		void setFriction(const float friction) { m_body->setFriction(friction); }
		void setRestitution(const float friction) { m_body->setRestitution(friction); }

	protected:
		void generalSetup( btVector3& localInertia, float weight, const btTransform& transform, void* owner, float lin_damping, float ang_damping );
	
	private:
};
#endif
